﻿using SrBBSPro.BaseClasses;
using NPoco;
using System;

namespace SrBBSPro.Entities
{
    /// <summary>
    /// 项目机能实体
    /// </summary>
    [TableName("PageInfo")]
    [PrimaryKey(new string[] { "Id", "No" }, AutoIncrement = false)]
    public class PageInfo : BaseDoubleEntity
    {
        /// <summary>
        /// 机能名
        /// </summary>
        public string PageName { get; set; }
        /// <summary>
        /// 规模
        /// </summary>
        public double Scale { get; set; }

        /// <summary>
        /// 开发担当
        /// </summary>
        public string Developer { get; set; }

        public string DeveloperName { get; set; }
        /// <summary>
        /// 测试担当
        /// </summary>
        public string Tester { get; set; }

        public string TesterName { get; set; }
        /// <summary>
        /// 修正担当
        /// </summary>
        public string Reviser { get; set; }

        public string ReviserName { get; set; }
        /// <summary>
        /// 状态
        /// </summary>
        public string Kind { get; set; }

        /// <summary>
        /// 状态名称
        /// </summary>
        [Ignore]
        public string KindName
        {
            get => Kind == "0" ? "Batch" : "Page";
        }

        /// <summary>
        /// 备注
        /// </summary>
        public string Remark { get; set; }

    }
}